package com.example.mapper;

import com.example.entity.IndicatorMetadata;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IndicatorMapper {
    @Select("SELECT * FROM indicator_metadata WHERE table_code = #{tableCode}")
    List<IndicatorMetadata> findByTableCode(String tableCode);

    @Select("SELECT * FROM indicator_metadata WHERE table_code = #{tableCode} AND indicator_code = #{indicatorCode}")
    IndicatorMetadata findByTableAndIndicatorCode(String tableCode, String indicatorCode);
}